# _*_ coding : utf-8 _*_
# @Time : 2024-05-29 10:13
# @Author : haowen
# @File : 3.尺寸修改
# @Project : face identifying
import cv2 as cv

img = cv.imread("image/1.JPG")

#修改尺寸
resize_img = cv.resize(img,dsize=(200,200))
cv.imshow("read_image",img)
cv.imshow("resize_img",resize_img)

print("原图",img.shape)
print("修改后",resize_img.shape)
# 按下q退出
while True:
    if ord('q') == cv.waitKey(0):
        break

cv.destroyAllWindows()